// `include "barrel_shift.v"
`default_nettype none

module barrel_shift_tb;
parameter	TCLK = 10;
reg [31:0]  data_in ;
reg         dir     ;//0lift 1right
reg [4 :0]  sh      ;
wire [31:0]  data_out;

initial begin
    $dumpfile("sim/build/barrel_shift_tb.vcd");
    $dumpvars(0, barrel_shift_tb);
end

initial
begin
    // repeat(20)
    // begin
        data_in = 32'h18a0_0000;
        dir     = 0;//0lift 1right
        sh      = 10;
        #TCLK;
        data_in = 32'h00ff_0003;
        dir     = 1;//0lift 1right
        sh      = 20;
        #TCLK;
    // end
    $finish;
end

barrel_shift u_barrel_shift(
    .data_in  (data_in  ),
    .dir      (dir      ),
    .sh       (sh       ),
    .data_out (data_out )
);


endmodule
`default_nettype wire